package com.boot.core.exception;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @date 2021/1/18 19:43
 **/

public class UnsupportedClassException extends RuntimeException {

    public UnsupportedClassException() {
    }

    public UnsupportedClassException(String message) {
        super(message);
    }

    public UnsupportedClassException(String message, Throwable cause) {
        super(message, cause);
    }

    public UnsupportedClassException(Throwable cause) {
        super(cause);
    }

    public UnsupportedClassException(Class<?> clazz) {
        super("Do not support class: " + clazz.getName());
    }

    public UnsupportedClassException(Class<?> clazz1, Class<?> clazz2) {
        super(clazz1.getName() + " do not support class: " + clazz2.getName());
    }

    public UnsupportedClassException(Class<?> clazz, Throwable cause) {
        super("Do not support class: " + clazz.getName(), cause);
    }
}
